package com.teamfractal.fracdustry.common.config;

import net.minecraftforge.common.ForgeConfigSpec;

public class FDCommonConfig {
    //Main
    public static ForgeConfigSpec COMMON_CONFIG;

    //Machine Configuration
    public static ForgeConfigSpec.IntValue ORE_PROCESSOR_BASE_PROCESS_TIME;

    public static ForgeConfigSpec.DoubleValue ELECTRIC_FURNACE_PROCESS_TIME_COEFFICIENT;


    static{
        ForgeConfigSpec.Builder COMMON_BUILDER = new ForgeConfigSpec.Builder();
        COMMON_BUILDER.comment("Machine Configuration","Ore Processor").push("Process Time");
        ORE_PROCESSOR_BASE_PROCESS_TIME = COMMON_BUILDER.comment("How long should the initial processing time of the ore processor?")
                .defineInRange("initial_processing_time",200,1,5000);
        COMMON_BUILDER.pop();
        COMMON_BUILDER.comment("Electric Furnace").push("Process Time's coefficient");
        ELECTRIC_FURNACE_PROCESS_TIME_COEFFICIENT = COMMON_BUILDER.comment("What should be the coefficient of the electric furnace treatment time?"
                        ,"For Example this value is 'x'", "the item's cooking time in a vanilla furnace is 'y',",
                        "then the item's cooking time in a unupgraded electric furnace will be 'x*y'.")
                .defineInRange("initial_processing_time_coefficient",1.0,0.1,25);
        COMMON_BUILDER.pop();

        COMMON_CONFIG = COMMON_BUILDER.build();


    }
}
